<template>
  <div>
    我是subvue的父组件
    <sub-vue></sub-vue>
    <footer-vue></footer-vue>
    <button @click="listen">爸爸焦急的听电话</button>
  </div>
</template>

<script>
// 引入连接器
import connector from './SPAcomponent/connection.js'

export default {
  data () {
    return {

    }
  },
  components: {

  },
  methods: {
    listen () {
      connector.$on('phone', function (msg) {
        console.log(msg);
      })
    }
  }
}
</script>

<style scoped>
</style>
